package com.wss.common.base;

import com.gyf.immersionbar.ImmersionBar;
import com.wss.common.base.mvp.BasePresenter;
import ohos.aafwk.content.Intent;

public abstract class BaseFullScreenAbility<P extends BasePresenter> extends BaseMvpAbility<P> {

    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        initView();
    }

    @Override
    protected boolean isFullScreenLayout() {
        return true;
    }

    @Override
    protected int getLayoutId() {
        //该方法仅仅是为了实现父类的抽象方法，无任何意义，忽略即可
        return ResourceTable.Layout_layout_nothing;
    }

    protected void initView() {
        //布局可伸入状态栏
        ImmersionBar.with(this)
                .statusBarColor(ResourceTable.Color_transparent)
                .statusBarDarkFont(true)
                .fullScreen(true)
                .init();
    }
}
